<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>layuiAdmin 后台管理员</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="__STATIC__/layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="__STATIC__/layuiadmin/style/admin.css" media="all">
  <style>
    .layui-upload-img{width: 92px; height: 92px; margin: 0 10px 10px 0;}
  </style>
</head>
<body>

<table class="layui-hide" id="test"></table>
<script src="__STATIC__/layuiadmin/layui/layui.js"></script>
  <script>
  layui.config({
    base: '__STATIC__/layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'table','upload'], function(){
    var $ = layui.$
    ,form = layui.form
    ,upload = layui.upload
    ,table = layui.table;
//普通图片上传

      table.render({
          elem: '#test'
          ,url:'wxCopyShow?id={$gid}'
          ,cellMinWidth: 80 //全局定义常规单元格的最小宽度，layui 2.2.1 新增
          ,cols: [[
              { title:'ID', fixed: 'left', type:'numbers'}
              ,{field:'wx',  title: '微信号'}
              ,{field:'times',  title: '复制次数', sort: true}
              ,{field:'showTimes',  title: '展示次数', sort: true}
          ]]
      });







  });
  </script>
</body>
</html>

